﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MethodWorx.CMS.UI.Areas.Administration.Models
{
    public class ObjectForExport
    {
        public Guid Id { get; set; }
        public string Name { get; set; }
        public string Type { get; set; }
        public string Path { get; set; }
        public string ImportBehavior { get; set; }
    }

    public class ExportModel
    {
        public IEnumerable<ObjectForExport> Objects { get; set; }

        public SelectList GetFilterSelectList()
        {
            return new SelectList(this.Objects.Select(o => o.Type).Distinct());
        }

        public string Filter { get; set; }
    }
}